import { request } from 'umi'

export function getProdTag() {
  let params = {
    t: 1652106472989,
    current: 1,
    size: 10,
  }
  return request('/prod/prodTag/page', {
    params
  })
}
// 搜索
export function getSerachList(text: any) {
  let params = {
    t: 1652106472989,
    current: 1,
    size: 10,
    title: text
  }
  return request('/prod/prodTag/page', { params })
}
// 搜索2
export function getisSerach(istext: any) {
  let params = {
    t: 1652106472989,
    current: 1,
    size: 13,
    status: istext
  }
  return request('/prod/prodTag/page', { params })
}
// 新增
export function getAddProdLsit(payload: any) {
  return request('/prod/prodTag', {
    method: 'POST',
    data: payload
  })
}

// 删除
export function getDeleteListItem(id: string) {
  return request(`/prod/prodTag/${id}`, {
    method: 'DELETE'
  })
}
// 修改
export function getPUTListItem(payload: any) {
  return request('/prod/prodTag', {
    method: 'PUT',
    data: payload
  })
}

// 分页
export function getPaging(params: Object) {
  return request('/prod/prodTag/page', { params })
}